<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>浏览器子页面</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/app.css" />
</head>

<body>

</body>

<script src="../../script/fastclick.js"></script>
<script src="../../script/jquery_three_two_one.js"></script>
<script src="../../script/app.js"></script>
<script>
    apiready = function () {
        var app = new APP();
        app.log("browser", "我的页面");
        var url = api.pageParam.url;
        app.browse2(url, function (ret, err) {
            app.log("browser", ret);
            if (ret.state == 3) {
                app.trigger("title_change", {
                    title: ret.title
                });
            }
        });

        app.listen("check_history", function (ret, err) {
            app.log("browser", "监听到了检测浏览2记录事件");
            app.browser.historyBack(function (ret, err) {
                if (!ret.status) {
                    app.closeW();
                }
            });
        });
    }
</script>

</html>